package com.cn.sys.main.entity;

import java.io.Serializable;
import java.util.Date;

import org.codehaus.jackson.map.annotate.JsonSerialize;

import com.cn.sys.frame.util.CustomDateTimeSerializer;

public class SysUser implements Serializable{

	private static final long serialVersionUID = 6877395331863442039L;
	
	private Long id;
	private String userName;
	private String passWord;
	private String name;
	private String sex;
	private String phone;
	private String mail;
	private String status;
	private Long organId;
	private Date createTime;
	private Date updateTime;
	private String createUser;
	private String remark;
	private String loginIp;
	private Date loginTime;
	private Date logoutTime;
	
	//该属性只用来在页面上显示
	private String organName;
	
	public SysUser(){
		
	}

	public SysUser(Long id, String userName, String passWord, String name,
			String sex, String phone, String mail, String status, Long organId,
			Date createTime, Date updateTime, String createUser, String remark,
			String loginIp, Date loginTime, Date logoutTime) {
		this.id = id;
		this.userName = userName;
		this.passWord = passWord;
		this.name = name;
		this.sex = sex;
		this.phone = phone;
		this.mail = mail;
		this.status = status;
		this.organId = organId;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.createUser = createUser;
		this.remark = remark;
		this.loginIp = loginIp;
		this.loginTime = loginTime;
		this.logoutTime = logoutTime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassWord() {
		return passWord;
	}

	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	public Long getOrganId() {
		return organId;
	}

	public void setOrganId(Long organId) {
		this.organId = organId;
	}

	@JsonSerialize(using = CustomDateTimeSerializer.class)
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@JsonSerialize(using = CustomDateTimeSerializer.class)
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getLoginIp() {
		return loginIp;
	}

	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}
	@JsonSerialize(using = CustomDateTimeSerializer.class)
	public Date getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}

	public Date getLogoutTime() {
		return logoutTime;
	}

	public void setLogoutTime(Date logoutTime) {
		this.logoutTime = logoutTime;
	}

	public String getOrganName() {
		return organName;
	}

	public void setOrganName(String organName) {
		this.organName = organName;
	}
	
}
